import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const nine: AppRouteModule = {
  path: '/nine',
  name: 'Nine',
  component: LAYOUT,
  redirect: '/nine/setFromPoints',
  meta: {
    orderNo: 9,
    icon: 'icon-park-outline:nine-key',
    title: '生成曲线、几何体',
  },
  children: [
    {
      path: 'setFromPoints',
      name: 'SetFromPoints',
      component: () => import('@/views/three/nine/setFromPoints.vue'),
      meta: {
        title: '几何体方法setFromPoints',
      },
    },
    {
      path: 'circularArc',
      name: 'CircularArc',
      component: () => import('@/views/three/nine/circularArc.vue'),
      meta: {
        title: '生成圆弧顶点',
      },
    },
    {
      path: 'ellipseCurve',
      name: 'EllipseCurve',
      component: () => import('@/views/three/nine/ellipseCurve.vue'),
      meta: {
        title: '椭圆、圆',
      },
    },
    {
      path: 'splineCurve',
      name: 'SplineCurve',
      component: () => import('@/views/three/nine/splineCurve.vue'),
      meta: {
        title: '样条曲线',
      },
    },
    {
      path: 'bezierCurve',
      name: 'BezierCurve',
      component: () => import('@/views/three/nine/bezierCurve.vue'),
      meta: {
        title: '贝塞尔曲线',
      },
    },
    {
      path: 'curvePath',
      name: 'CurvePath',
      component: () => import('@/views/three/nine/curvePath.vue'),
      meta: {
        title: '组合曲线CurvePath拼接曲线',
      },
    },
    {
      path: 'tubeGeometry',
      name: 'TubeGeometry',
      component: () => import('@/views/three/nine/tubeGeometry.vue'),
      meta: {
        title: '曲线路径管道TubeGeometry',
      },
    },
    {
      path: 'latheGeometry',
      name: 'LatheGeometry',
      component: () => import('@/views/three/nine/latheGeometry.vue'),
      meta: {
        title: '旋转成型LatheGeometry',
      },
    },
    {
      path: 'shapeGeometry',
      name: 'ShapeGeometry',
      component: () => import('@/views/three/nine/shapeGeometry.vue'),
      meta: {
        title: '轮廓填充shapeGeometry',
      },
    },
    {
      path: 'extrudeGeometry',
      name: 'ExtrudeGeometry',
      component: () => import('@/views/three/nine/extrudeGeometry.vue'),
      meta: {
        title: '拉伸ExtrudeGeometry',
      },
    },
    {
      path: 'shapeOne',
      name: 'ShapeOne',
      component: () => import('@/views/three/nine/shapeOne.vue'),
      meta: {
        title: '多边形轮廓Shape简介',
      },
    },
    {
      path: 'shapeTwo',
      name: 'ShapeTwo',
      component: () => import('@/views/three/nine/shapeTwo.vue'),
      meta: {
        title: '多边形轮廓Shape(圆弧)',
      },
    },
    {
      path: 'shapeThree',
      name: 'ShapeThree',
      component: () => import('@/views/three/nine/shapeThree.vue'),
      meta: {
        title: '多边形Shape(内孔.holes)',
      },
    },
    {
      path: 'edgesGeometry',
      name: 'EdgesGeometry',
      component: () => import('@/views/three/nine/edgesGeometry.vue'),
      meta: {
        title: '模型边界线EdgesGeometry',
      },
    },
    {
      path: 'attributes',
      name: 'Attributes',
      component: () => import('@/views/three/nine/attributes.vue'),
      meta: {
        title: '几何体顶点颜色数数据',
      },
    },
    {
      path: 'color',
      name: 'Color',
      component: () => import('@/views/three/nine/color.vue'),
      meta: {
        title: 'Color颜色渐变插值',
      },
    },
  ],
};

export default nine;
